package aom.maozj.net.forward.desthost;

import java.io.IOException;

public class MasterTerver {
	public static MasterTerver masterTerver = null;

	private int port;

	private MasterTerver(int port) {
		this.port = port;
	}

	public static MasterTerver getInstance() {
		if (masterTerver == null) {
			masterTerver = new MasterTerver(8100);
		}
		return masterTerver;
	}

	public void startup() throws IOException {
		MTerverContainer container = new MTerverContainer();
		
		NetListenServer netListenServer = new NetListenServer(port);
		netListenServer.start(container);
	}
}
